//
//  IGSpecial.m
//  jingdongfang
//
//  Created by BOE on 2017/9/20.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGSpecial.h"

@implementation IGSpecial

+ (JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc]
            initWithModelToJSONDictionary:@{
                                            @"sid":@"id"
                                            }];
}

- (IGShareModel *)getShareModel {
    IGShareModel *shareModel = [IGShareModel new];
    shareModel.title = self.title;
    shareModel.descr = self.subTitle.length>40?[self.subTitle substringToIndex:39]:self.subTitle;
    shareModel.webpageUrl = self.content;
    shareModel.thumbURL = self.image?self.image:nil;
    
    return shareModel;
}

+(BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}
@end
